<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block th:include="include :: header('')" />
</head>
<body class="white-bg">
	<div class="row">
		<div class="col-md-6">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>巡检信息</h5>
				</div>
				<div class="ibox-content">
					<div class="table-responsive">
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>衡器：</th>
									<th th:with="dictCode=${'womp_weighing_apparatus,code,name,code='''+osiRecordMap.wa_code+''''}">
										<select name="waCode" class="form-control m-b" th:with="type=${@commdict.getDictList(dictCode)}" required readonly="readonly">
			                        		<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
			                    		</select>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<th class="text-nowrap">巡检类型：</th>
									<td>
										<select name="osiType" class="form-control m-b" th:with="type=${@commdict.getDictList('sys_dict_data,dict_value,dict_label,dict_type=semicolonsys_osi_typesemicolon and dict_value=semicolon'+osiRecordMap.osi_plan_type+'semicolon')}" required readonly="readonly">
			                        		<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:selected="${dict.dictValue==osiRecordMap.osi_plan_type}"></option>
			                    		</select>
									</td>
								</tr>
								<tr>
									<th class="text-nowrap">巡检日期：</th>
									<td><span th:text='${osiRecordMap.osi_date }'></span></td>
								</tr>
								<tr>
									<th class="text-nowrap">巡检人：</th>
									<td>
										<select name="osiUser" class="form-control m-b" th:with="type=${@commdict.getDictList('sys_user,login_name,user_name,login_name!=semicolonadminsemicolon')}" required>
			                        		<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:selected="${dict.dictValue==osiRecordMap.osi_user}"></option>
			                    		</select>
									</td>
								</tr>
								<tr>
									<th class="text-nowrap">说明：</th>
									<td><span th:text='${osiRecordMap.remark }'></span></td>
								</tr>
								<tr>
									<th class="text-nowrap">时间：</th>
									<td class="text-muted"><span th:text='${osiRecordMap.create_time }'></span></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<div class="col-md-4">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>巡检详细</h5>
				</div>
				<div class="ibox-content">
					<div class="table-responsive">
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>序号</th>
									<th>巡检项</th>
									<th>巡检结果</th>
									<th>说明</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each='o,stat:${osiRecordItemlist}'>
									<td><span th:text="${(stat.index+1)}"></span></td>
									<td><span th:text="${o.name}"></span></td>
									<td><span th:text="${o.osi_item_state}"></span></td>
									<td><span th:text="${o.remark}"></span></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
	<th:block th:include="include :: footer" />
	<script th:inline="javascript">
		var alarmMap = [[${alarmMap}]];
		var prefix = ctx + "realtime"
		$("#form-workOrder-add").validate({
			focusCleanup : true
		});

		function submitHandler() {
		}
	</script>
</body>
</html>